package com.glorystone.ins.domain;

import lombok.Data;

/**
 * Created by wangwei on 2018/3/8.
 */
public @Data class FlowNode {

    private Integer tid;
    private String name;
    private String passName;
    private String rejectName;
    private Integer type;
    private Integer flowId;
    private Integer nextId;
    private String permissionCode;
    private Integer rejectTo;
    private String url;


    public enum NodeTypeEnum {

        /**
         * 第一个节点
         */
        FIRST(1),
        /**
         * 结束节点
         */
        OVER(0),

        /**
         * 普通节点
         */
        COMMON(2);

        private int value;
        public int getValue() {
            return value;
        }
        NodeTypeEnum (int value) {
            this.value = value;
        }
    }


}
